package com.kxmall.vehicle.mapper;

import com.kxmall.common.core.mapper.BaseMapperPlus;
import com.kxmall.vehicle.domain.KxVehicle;
import com.kxmall.vehicle.domain.vo.KxVehicleVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 餐车管理Mapper接口
 */
public interface KxVehicleMapper extends BaseMapperPlus<KxVehicleMapper, KxVehicle, KxVehicleVo> {


    /**
     * 批量更新餐车资料状态
     *
     * @param ids   餐车主键集合
     * @param state 餐车资料状态
     * @return 影响行数
     */
    Integer batchUpdateState(@Param("ids") List<Long> ids, @Param("state") int state);

    /**
     * 批量更新餐车资料营业状态
     *
     * @param ids            餐车主键集合
     * @param operatingState 餐车资料营业状态
     * @return 影响行数
     */
    Integer batchUpdateOperatingState(@Param("ids") List<Long> ids, @Param("operatingState") int operatingState);

    /**
     * 获取所有餐车的名称
     * @param state
     * @param vehicleIds
     * @return
     */
    List<KxVehicleVo> getVehicleBoxAllName(int state, @Param("vehicleIds") List<Long> vehicleIds);

}
